package kz.kstu.scantest.desktop.util.health;


import org.apache.log4j.Logger;

/**
 * @author Filipp_Stankevich
 *         created: 09/29/11 4:26 PM
 */
public class DefaultErrorHandler implements Thread.UncaughtExceptionHandler {

    private static final Logger LOGGER = Logger.getLogger(DefaultErrorHandler.class);

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        LOGGER.error(e.getMessage(), e);
    }

    public static void handleError(Throwable e) {
        LOGGER.error(e.getMessage(), e);
    }
}
